package pers.vic.base.contant;

import java.util.Date;

import org.apache.commons.lang3.time.DateFormatUtils;

/**
 * 时间格式常量
 * @author VIC
 *
 */
public class DatePatternConstant {
	
	public static String yyyyMMdd = "yyyyMMdd";
	
	public static String yyyyMMddHHmmss = "yyyyMMddHHmmss";
	
	public static String yyyy_MM_dd = "yyyy-mm-dd";
	
	public static String yyyy_MM_dd_HH_mm_ss = "yyyy-mm-dd HH:mm:ss";
	
	public static String yyyy_MM_dd_HH_mm_ss_SSS = "yyyy-mm-dd HH:mm:ss.SSS";
	
	public static void main(String[] args) {
		p(yyyyMMdd);
		p(yyyy_MM_dd_HH_mm_ss);
		p(yyyyMMddHHmmss);
		p(yyyy_MM_dd_HH_mm_ss);
		p(yyyy_MM_dd_HH_mm_ss_SSS);
		
	}
	
	private static void p(String f) {
		Date d = new Date();
		System.out.println(DateFormatUtils.format(d, f));
	}

}
